/**
 * 侧边栏
 * {
        path:"/",//前台路径
        component: PostsLayout,
        name:"router-name", // keep-alive使用
        hidden:true,//侧边栏不显示
        meta:{
            role:[], // 权限节点判断
            icon:"svg-name",//侧边栏小图标
            title:"列表页" //侧边栏名称
        },
    }
 */
const sideConfig = [
    {
        path: "/dashboard",
        name: "dashboard",
        meta: {
            icon: "el-icon-lx-home",
            title: '系统首页'
        },
        component: () => import (
        /* webpackChunkName: "dashboard" */
        "../views/base/Dashboard.vue")
    },
    {
        path: "/table",
        name: "table",
        meta: {
            icon: "el-icon-lx-cascades",
            title: '基础表格'
        },
        component: () => import (
        /* webpackChunkName: "dashboard" */
        "../views/base/BaseTable.vue")
    },
    {
        path: "/tabs",
        name: "tabs",
        meta: {
            icon: "el-icon-lx-copy",
            title: 'tab选项卡'
        },
        component: () => import (
        /* webpackChunkName: "dashboard" */
        "../views/base/Tabs.vue")
    },
    {
        path: "/",
        name: "form",
        meta: {
            icon: "el-icon-lx-calendar",
            title: '表单相关'
        },
        children:[
            {
                path: "/form",
                name: "baseform",
                meta: {
                    icon: "el-icon-lx-calendar",
                    title: '基本表单'
                },
                component: () => import (
                    /* webpackChunkName: "dashboard" */
                    "../views/base/BaseForm.vue")
            },
            {
                path: "/upload",
                name: "upload",
                meta: {
                    icon: "el-icon-lx-calendar",
                    title: '文件上传'
                },
                component: () => import (
                    /* webpackChunkName: "dashboard" */
                    "../views/base/Upload.vue")
            }
        ]
    }
];


export default sideConfig;